home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / cdspeed.zip / CDTEST.BAT < prev    next >
DOS Batch File  |  1991-10-14  |  2KB  |  55 lines

  1. @echo off
  2. rem **********************************************************************
  3. rem *                                                                    *
  4. rem *  CDTEST.BAT - CDTEST.BAT accepts two command line parameters:      *
  5. rem *     1) the name of the testfile on the CD ROM, and                 *
  6. rem *     2) the name of the output logfile to contain the test results. *
  7. rem *                                                                    *
  8. rem *  CDTEST.BAT then calls BLKTEST.BAT which makes the actual calls     *
  9. rem *  to CDSPEED.EXE to perform the CDROM tests.  CDTEST.BAT passes    *
  10. rem *  BLKTEST.BAT three variables:                                       *
  11. rem *     1) the name of the CDROM testfile,                             *
  12. rem *     2) the requested data transfer rate, and                       *
  13. rem *     3) the name of the output logfile.                             *
  14. rem *                                                                    *
  15. rem *                                                                    *
  16. rem *  Input variables from command line:                                *
  17. rem *                                                                    *
  18. rem *     %1 = name of test file located on the CDROM                    *
  19. rem *     %2 = name of the output logfile for test data                  *
  20. rem *                                                                    *
  21. rem **********************************************************************
  22.  
  23.  
  24.  
  25. echo Testing CDROM drive...
  26.  
  27. rem /* Open the log file by redirecting the following headers to the file */
  28. echo Testfile,Req Xfr Rate,Rd Blk Sz,Primer Sz,Bkgnd Cpu,File Sz,Act Xfr Rate,Pcnt Blkd By Rd,Overall CPU  > %2
  29.  
  30.  
  31.  
  32. rem  /* blktest is called with 90kb/sec,120kb/sec and 150kb/sec transfer rates */
  33.  
  34. rem /* If you need to need to test with 30kb/sec and 60kb/sec, uncomment the following 4 rem statements **/
  35.  
  36.  
  37. rem call blktest %1 30720 %2
  38. rem echo Test of 30 KB/sec rate complete
  39.  
  40. rem call blktest %1 61440 %2
  41. rem echo Test of 60 KB/sec rate complete
  42.  
  43. call blktest %1 92160 %2
  44. echo Test of 90 KB/sec rate complete
  45.  
  46. call blktest %1 122880 %2
  47. echo Test of 120 KB/sec rate complete
  48.  
  49. call blktest %1 153600 %2
  50. echo Test of 150 KB/sec rate complete
  51.  
  52.  
  53.  
  54. echo Testing complete.
  55.